area and perimeter of a triangle